<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>Promise测试</title>
	<style type="text/css">
	* {
		padding: 0;
		margin: 0;
	}
    </style>
</head>
<body>
	<div class="container">
		<h1>Promise测试</h1>
	</div>
	<script src="https://cdn.staticfile.org/jquery/3.2.0/jquery.js"></script>
	<script type="text/javascript">
	var p1 = new Promise(() => {})
	var p2 = Promise.resolve('ok')
	var p3 = Promise.reject('error')

	console.log(p1)
	console.log(p2)
	console.log(p3)
	
	</script>
</body>
</html>